<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="../static/layui-v2.5.7/layui/css/layui.css">
    <style>
        .zhu {
            background: url("../img/banner2.jpg") 100% 100%;
            background-size: 100% 100%;
            width: 100%;
            height: 100%;
        }

        /* .login {

        } */

    </style>
</head>
<body><!-------------------login-------------------------->
<div class="zhu">
    <div class="login">
        <form class="layui-form" action="reg">
            <div class="layui-form-item">
                <label for="uname" class="layui-form-label"><i class="layui-icon layui-icon-username"></i>账号</label>
                <div class="layui-input-inline">
                    <input type="text" name="uname" id="uname" class="layui-input" placeholder="请输入账号">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="upassword" class="layui-form-label"><i class="layui-icon layui-icon-password"></i>密码</label>
                <div class="layui-input-inline">
                    <input type="password" name="upassword" id="upassword" class="layui-input" placeholder="请输入密码">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">登录</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <br>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="../static/layui-v2.5.7/layui/layui.js"></script>
<script>
    //Demo
    layui.use('form', function () {
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>
